<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="header_admin.jsp"%>
<!-- 以上为页头 设置head 引用样式相关信息 请勿修改  请直接修改header.jsp文件  by 小灯笼 -->

<!-- 以下为正文 -->
<div class="container">
	<div class="widget-body">
		<table
			class="table table-condensed table-striped table-bordered table-hover no-margin">
			<thead>
				<tr>
					<th>房间号</th>
					<th class="hidden-phone">容纳人数</th>
					<th class="hidden-phone">多媒体</th>
					<th class="hidden-phone">地址</th>
					<th class="hidden-phone">备注</th>
					<th class="hidden-phone">删除</th>
					<th class="hidden-phone">修改</th>
					<th class="hidden-phone">预定信息</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${myroom }" var="room">
					<form action="/mycms/admin/room_modify" method="post">
						<input type="hidden" name="id" id="id" value="${room.id }">
						<tr>
							<td>${room.BId }</td>
							<td class="hidden-phone">${room.BSize }</td>
							<td class="hidden-phone"><c:if test="${room.media == 1}">
                            	有
                            </c:if> <c:if test="${room.media == 0}">
                            	无
                            </c:if></td>
							<td class="hidden-phone">${room.BAddress }</td>
							<td class="hidden-phone">${room.remarks }</td>
							<td class="hidden-phone"><a class="btn btn-danger"
								href="/mycms/admin/room_delete?id=${room.id }">删除</a></td>
							<td class="hidden-phone"><button type="submit" name="submit"
									class="btn btn-info" value="modify">修改</button></td>
							<td class="hidden-phone"><button type="button" name="bookinfo"
									class="btn btn-info" onclick="window.location.href='/mycms/admin/room_bookinfo?id=${room.BId }'">查看</button></td>
						</tr>
					</form>
				</c:forEach>
			</tbody>
		</table>
		<div class="form-actions no-margin">
			<a href="/mycms/admin/room_add" type="button"
				class="btn btn-primary pull-right">添加新会议室</a>
			<div class="clearfix"></div>
		</div>
	</div>
</div>
<!-- 以上为正文 -->

<!-- 以下为页脚 及JS相关 请勿修改 请直接修改footer.jsp文件   by 小灯笼 -->
<jsp:include page="footer.jsp" />